package oo.Day02;

public class nightText {
    //成员变量
    int age;
    String address;
    String name;

    //构造方法
    nightText(int age,String name,String address){
        this.age = age;
        this.address =address;
        this.name = name;
    }

    //方法
    void hai(){
        System.out.println("今年,"+age+"岁");

    }
    void haile(){
        System.out.println("我叫"+name+"，今年"+age+"岁，家在"+address);
    }

}
